package com.stedu.mall.goodsservice.mapper;

import com.stedu.mall.common.bean.Goods;

import java.util.List;
import java.util.Map;

public interface GoodsMapper {
    int insert(Goods goods);
    int delete(Integer id);
    int update(Goods goods);
    List<Goods> selectByCondition(Goods condition);
    List<Goods> selectByCondition1(Goods condition);
    Goods selectById(Integer id);
    //根据分类ID查询商品
    List<Goods> selectByCategoryId(Integer categoryId);

    List<Map<String, Object>> selectByGroupByCategory();

    //全部分类
    List<Map<String, Object>> selectAllCnameAndCount();
}
